#ifndef __ABC_H__
#define __ABC_H__

typedef unsigned int uint;

typedef int u30;
typedef int s30;
typedef int s32;
typedef int s24;
typedef unsigned char u8;
typedef unsigned int u32;
typedef unsigned short u16;

typedef struct _abc_file {
} abc_file;

uint var_len_uint_read(FILE * fp, int byte_len);
int var_len_int_read(FILE * fp, int byte_len);

uint fixed_len_uint_read(FILE * fp, int byte_len);
int fixed_len_int_read(FILE * fp, int byte_len);

struct abc_file * abc_file_read(FILE * fp);

#define SIGNATURE_LEN 3
typedef struct _swf_head_signature {
	u8 signature[SIGNATURE_LEN];
	u8 version;
	u32 file_length;
} __attribute__((packed)) swf_head_signature;

typedef struct _swf_head_frame {
} swf_head_frame;

void abc_file_init(abc_file * af, bit_file * bf);

#endif // __ABC_H__


